#ifndef _HANDLEMGR_H
#define _HANDLEMGR_H

#include "CoreNet.h"
#include <stdint.h>
struct socket_wrapper;
struct engine;

int32_t     InitHandleMgr();

struct socket_wrapper* GetSocketByHandle(HANDLE);
struct engine* GetEngineByHandle(HANDLE);

HANDLE   NewEngine();
void     ReleaseEngine(HANDLE);

HANDLE   NewSocketWrapper();
int32_t      ReleaseSocketWrapper(HANDLE);

#endif